package com.selfdriving.activity;

import java.util.ArrayList;
import java.util.List;

import net.tsz.afinal.annotation.view.ViewInject;

import com.selfdriving.R;
import com.selfdriving.adapter.FriendAdapter;
import com.selfdriving.bean.User;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.TextView;

public class MyAttentionActivity extends BaseActivity {
	@ViewInject(id = R.id.friend_list)
	ListView friend_list;

	@ViewInject(id = R.id.topBack, click = "topBack")
	ImageView topBack;

	@ViewInject(id = R.id.topText)
	TextView topText;
	
	@ViewInject(id=R.id.topRight,click="topRight")
	Button topRight;

	private List<User> users;

	private FriendAdapter adapter;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.my_attention);
		topText.setText("我的关注");
		topRight.setVisibility(View.GONE);
		users = new ArrayList<User>();
		for (int i = 0; i < 7; i++) {
			User user = new User();
			users.add(user);
		}
		adapter = new FriendAdapter(this, users);
		friend_list.setAdapter(adapter);
	}
	
	public void topBack(View v){
		this.finish();
	}

}
